package com.supercube.sport.yoga.dao;

import com.supercube.sport.yoga.domain.CardSupportVenuesDTO;

import java.util.List;

public interface CardSupportVenuesMapper {
    int deleteByPrimaryKey(String id);

    int insert(CardSupportVenuesDTO record);

    int insertSelective(CardSupportVenuesDTO record);

    CardSupportVenuesDTO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CardSupportVenuesDTO record);

    int updateByPrimaryKey(CardSupportVenuesDTO record);

    /**
     * 根据会员卡id查询会员卡支持场馆列表
     *
     * @param cardId
     * @return
     */
    List<CardSupportVenuesDTO> selectCardSupportVenuesByCardId(String cardId);

    /**
     * 根据会员卡id删除会员卡支持的场馆
     *
     * @param cardId
     * @return
     */
    int deleteCardSupportVenuesByCardId(String cardId);

    int updateByPrimaryKey(List<CardSupportVenuesDTO> record);

    int batchDeleteByPrimaryKey(List<String> id);

    int batchInsert(List<CardSupportVenuesDTO> cardSupportVenuesDTOS);

    int selectCountCardSupportVenuesByVenuesId(String venuesId);
}